package day07Test;

import java.util.Random;

public class Test6 {
    public static void main(String[] args) {
        int[] arr = {1,9,8,3};
        for (int i = 0; i < arr.length; i++) {
            arr[i] = (arr[i] + 5) % 10;
        }

        for (int i = 0 ,j = arr.length -1; i < j; i++ , j--) {
            int temp = arr[i];
            arr[i] = arr[j];
            arr[j] = temp;
        }
        int number = 0;
        for (int i = 0; i < arr.length; i++) {
            number = number * 10 + arr[i];

        }
        System.out.print(number);
    }
}
